Platform Explorer / Nuxeo Platform 2023.19

Operation Task.ApplyDocumentMapping (Apply mapping on input task doc)

Description

Applies the mapping passed in parameter on the task document. The sourceDoc in the mapping is the input document in the workflow. The operation throws a NuxeoException if the input document is not a Task.
Operation id Task.ApplyDocumentMapping
AliasesContext.ApplyMappingOnTask
Category Workflow Context
Label Apply mapping on input task doc
Requires Workflow
Since

Parameters

Name Description Type Required Default value
mappingName string yes  

Signature

Inputs document
Outputs document

Implementation Information

Implementation Class Class: org.nuxeo.ecm.platform.routing.api.operation.MapPropertiesOnTaskOperation
Contributing Component org.nuxeo.ecm.platform.routing.operations

JSON Definition

{
  "id" : "Task.ApplyDocumentMapping",
  "aliases" : [ "Context.ApplyMappingOnTask" ],
  "label" : "Apply mapping on input task doc",
  "category" : "Workflow Context",
  "requires" : "Workflow",
  "description" : "Applies the mapping passed in parameter on the task document. The sourceDoc in the mapping is the input document in the workflow. The operation throws a NuxeoException if the input document is not a Task.",
  "url" : "Task.ApplyDocumentMapping",
  "signature" : [ "document", "document" ],
  "params" : [ {
    "name" : "mappingName",
    "description" : null,
    "type" : "string",
    "required" : true,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  } ]
}